<?php
include_once ('head.php');
?>
<div class="container">

	<div class="layui-card">
		<div class="layui-card-header">管理资料</div>
		<div class="layui-card-body">
			<table class="layui-table">
                <tbody>
                    <tr>
                        <th><span class="layui-badge-dot"></span> UID</th>
                        <td><?=$row['uid']?></td>
					</tr>
					<tr>
                        <th><span class="layui-badge-dot layui-bg-orange"></span> 账户名</th>
                        <td><?=$row['user']?></td>
					</tr>
					<tr>
                        <th><span class="layui-badge-dot layui-bg-green"></span> QQ号码</th>
                        <td><?=$row['qq']?></td>
					</tr>
					<tr>
                        <th><span class="layui-badge-dot layui-bg-cyan"></span> IP</th>
                        <td><font color="#FF5722"><?=$row['ip']?></font></td>
					</tr>
					<tr>
                        <th><span class="layui-badge-dot layui-bg-blue"></span> 入库日期/IP</th>
                        <td><?=$row['regtime']?> / <font color="#FF5722"><?=$row['regip']?></font></td>
					</tr>
					<tr>
                        <th><span class="layui-badge-dot layui-bg-black"></span> 最后登录IP</th>
                        <td><font color="#FF5722"><?=$row['lastip']?></font></td>
					</tr>
					<tr>
                        <th><span class="layui-badge-dot layui-bg-gray"></span> 最后登录日期</th>
                        <td><?=$row['lasttime']?></td>
					</tr>
                </tbody>
            </table>
		</div>
	</div>
	
	<div class="layui-card">
		<div class="layui-card-header">服务器信息</div>
		<div class="layui-card-body">
			<table class="layui-table">
                <tbody>
                    <tr>
                        <th>PHP程式版本</th>
                        <td><?=PHP_VERSION?></td></tr>
                    <tr>
                        <th>服务器地址</th>
                        <td><?=$_SERVER['SERVER_ADDR']?></td></tr>
                    <tr>
                        <th>操作系统</th>
                        <td><?=PHP_OS?></td></tr>
                    <tr>
                        <th>运行环境</th>
                        <td><?=$_SERVER["SERVER_SOFTWARE"]?></td></tr>
                    <tr>
                        <th>PHP版本</th>
                        <td><?=PHP_VERSION?></td></tr>
                    <tr>
                        <th>PHP运行方式</th>
                        <td><?=php_sapi_name()?></td></tr>
                    <tr>
                        <th>MYSQL版本</th>
                        <td><?=$DB->get_row("select VERSION()")['VERSION()']?></td></tr>
                    <tr>
                        <th>ThinkPHP</th>
                        <td>小照 Php.Frame</td></tr>
                    <tr>
                        <th>上传附件限制</th>
                        <td><?=ini_get('upload_max_filesize')?></td></tr>
                    <tr>
                        <th>执行时间限制</th>
                        <td><?=ini_get('max_execution_time').'秒'?></td></tr>
                    <tr>
                        <th>剩余空间</th>
                        <td><?=round((disk_free_space(".")/(1024*1024)),2)?>M</td></tr>
                </tbody>
            </table>
		</div>
	</div>
	
</div>
	<script src="../layui/layui.all.js"></script>
	<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
	<!--您的Layui代码start-->
	<script type="text/javascript">
		
	</script>
</body>
</html>